package com.cloudkinto.service.statistics;

import com.cloudkinto.entity.NotificationDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.statistics.vo.NotificationPageRes;
import com.cloudkinto.service.statistics.vo.RecordPageRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-06-19
 */
public interface NotificationService extends IService<NotificationDo> {

    SingleResult addInit();

    Object add(Object req, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<NotificationPageRes> getList(Map<String, String> map);

    SingleResult notificationNewest(Long userId);

    SingleResult confirmHavingRead(Long id,Long userId);

    PageResult getListPage(Map<String, String> map);

    List<NotificationPageRes> getListHomePageData(Map<String, String> map);
}
